#include "SList.h"

int main()
{
	SListNode* plist = NULL;

	SListPushFront(&plist, 3);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 1);
	SListPrint(plist);

	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPrint(plist);

	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);

	SListNode* pos = SListFind(plist, 3);
	SListInsertAfter(pos, 2);
	SListPrint(plist);

	pos = SListFind(plist, 2);
	SListEraseAfter(pos);
	SListPrint(plist);

	pos = SListFind(plist, 2);
	SListInsert(&plist, pos, 3);
	SListPrint(plist);

	return 0;
}